/*
 * Amazon Ads API - Sponsored Products
 * Use the Amazon Ads API for Sponsored Products for campaign, ad group, keyword, negative keyword, and product ad management operations. For more information about Sponsored Products, see the [Sponsored Products Support Center](https://advertising.amazon.com/help?entityId=ENTITY3CWETCZD9HEG2#GWGFKPEWVWG2CLUJ). For onboarding information, see the [account setup](setting-up/account-setup) topic.<br/><br/> 
 *
 * The version of the OpenAPI document: 2.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.KeywordBidRecommendationsDataKeywords;

/**
 * KeywordBidRecommendationsData
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-04-12T19:05:39.971406+08:00[Asia/Shanghai]")
public class KeywordBidRecommendationsData {
  public static final String SERIALIZED_NAME_AD_GROUP_ID = "adGroupId";
  @SerializedName(SERIALIZED_NAME_AD_GROUP_ID)
  private BigDecimal adGroupId;

  public static final String SERIALIZED_NAME_KEYWORDS = "keywords";
  @SerializedName(SERIALIZED_NAME_KEYWORDS)
  private List<KeywordBidRecommendationsDataKeywords> keywords = null;


  public KeywordBidRecommendationsData adGroupId(BigDecimal adGroupId) {
    
    this.adGroupId = adGroupId;
    return this;
  }

   /**
   * The identifier of the ad group that the keywords are associated with.
   * @return adGroupId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The identifier of the ad group that the keywords are associated with.")

  public BigDecimal getAdGroupId() {
    return adGroupId;
  }


  public void setAdGroupId(BigDecimal adGroupId) {
    this.adGroupId = adGroupId;
  }


  public KeywordBidRecommendationsData keywords(List<KeywordBidRecommendationsDataKeywords> keywords) {
    
    this.keywords = keywords;
    return this;
  }

  public KeywordBidRecommendationsData addKeywordsItem(KeywordBidRecommendationsDataKeywords keywordsItem) {
    if (this.keywords == null) {
      this.keywords = new ArrayList<KeywordBidRecommendationsDataKeywords>();
    }
    this.keywords.add(keywordsItem);
    return this;
  }

   /**
   * An array of keyword data objects.
   * @return keywords
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "An array of keyword data objects.")

  public List<KeywordBidRecommendationsDataKeywords> getKeywords() {
    return keywords;
  }


  public void setKeywords(List<KeywordBidRecommendationsDataKeywords> keywords) {
    this.keywords = keywords;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    KeywordBidRecommendationsData keywordBidRecommendationsData = (KeywordBidRecommendationsData) o;
    return Objects.equals(this.adGroupId, keywordBidRecommendationsData.adGroupId) &&
        Objects.equals(this.keywords, keywordBidRecommendationsData.keywords);
  }

  @Override
  public int hashCode() {
    return Objects.hash(adGroupId, keywords);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class KeywordBidRecommendationsData {\n");
    sb.append("    adGroupId: ").append(toIndentedString(adGroupId)).append("\n");
    sb.append("    keywords: ").append(toIndentedString(keywords)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

